package com.movitech.mobile.cz.base.modules.config;

public enum ArticleTypeEnum {
	articleType1("帮助中心", 1),
	articleType2("注册须知", 2);
	private String desc;
	private int code;

	private ArticleTypeEnum(String desc, int code){
		this.desc = desc;
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public static String getDesc(Integer code) {
		for (ArticleTypeEnum c : ArticleTypeEnum.values()) {
			if (c.getCode()==code) {
				return c.getDesc();
			}
		}
		return null;
	}
	
}
